// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /chatSession/add */
export async function addChatSession(
  body: API.AddChatSessionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong>('/chatSession/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /chatSession/delete/${param0} */
export async function deleteChatSession(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteChatSessionParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.BaseResponseBoolean>(`/chatSession/delete/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /chatSession/delete/batch */
export async function batchDeleteChatSession(body: number[], options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/chatSession/delete/batch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /chatSession/get/${param0} */
export async function getChatSession(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getChatSessionParams,
  options?: { [key: string]: any }
) {
  const { id: param0, ...queryParams } = params
  return request<API.BaseResponseChatSessionVO>(`/chatSession/get/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /chatSession/list/page/vo */
export async function listChatSessionVoByPage(
  body: API.ChatSessionQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageChatSessionVO>('/chatSession/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /chatSession/update */
export async function updateChatSession(
  body: API.updateChatsessionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/chatSession/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
